<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>带加载样式边框的表格</title>
    <style>
        @keyframes loading {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
            }

            100% {
                box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
            }
        }

        table {
            border-collapse: collapse;
            width: 500px;
            height: auto;
            animation: loading 1.5s linear infinite;
        }

        th,
        td {
            padding: 8px;
            text-align: center;
            word-wrap: break-word;
        }

        tr:nth-child(odd) {
            background-color: #f9f9f9;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
    </style>
</head>

<body>
    <table>
        <thead>
            <tr>
                <th>水果名称</th>
                <th>颜色</th>
                <th>产地</th>
                <th>价格（元/斤）</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>苹果</td>
                <td>红色、绿色等</td>
                <td>山东、陕西等</td>
                <td>3 - 8</td>
            </tr>
            <tr>
                <td>香蕉</td>
                <td>黄色</td>
                <td>海南、云南等</td>
                <td>2 - 5</td>
            </tr>
            <tr>
                <td>橙子</td>
                <td>橙色</td>
                <td>江西、四川等</td>
                <td>4 - 10</td>
            </tr>
            <tr>
                <td>草莓</td>
                <td>红色</td>
                <td>辽宁、河北等</td>
                <td>10 - 30</td>
            </tr>
        </tbody>
    </table>
</body>

</html>